package com.zyong.design.pattern.flyweight.case2;

/**
 * 抽象享元类:抽象游戏角色
 * @program: zyong-design-pattern
 * @ClassName: AbstractGameRole
 * @author: zyong
 * @create: 2024-04-06 10:35
 */
public abstract class AbstractGameRole {
    public String id;
    public String name;
    public boolean isLive = true;

    /**
     * 移动
     */
    public abstract void move();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isLive() {
        return isLive;
    }

    public void setLive(boolean live) {
        isLive = live;
    }
}
